//
//  UIView+FFFView.m
//  OneDiscountMall
//
//  Created by 樊凡凡 on 16/3/31.
//  Copyright © 2016年 樊凡凡. All rights reserved.
//

#import "UIView+FFFView.h"

@implementation UIView (FFFView)
-(CGFloat)width
{
    return self.frame.size.width;
}
-(void)setWidth:(CGFloat)width
{
    CGRect rect=self.frame;
    rect.size.width=width;
    self.frame=rect;
}
-(CGFloat)height
{
    return self.frame.size.height;
}
-(void)setHeight:(CGFloat)height
{
    CGRect rect=self.frame;
    rect.size.height=height;
    self.frame=rect;
}
@end
